package com.jizhangben.service;

import com.jizhangben.dao.AccountDaoImpl;
import com.jizhangben.pojo.AccountPojo;

import java.util.List;

public class AccountService {
    private AccountDaoImpl accountDaoImpl = new AccountDaoImpl();

    public List<AccountPojo> getByAll(int uId) {
        return accountDaoImpl.getByAll(uId);
    }

    public AccountPojo getByIdAcount(int id) {
        return accountDaoImpl.getByIdAcount(id);
    }
    public int insertAccount(AccountPojo accountPojo) {
        return accountDaoImpl.insertAccount(accountPojo);
    }
}
